-- GENERATED SPELL FOR [Un'Goro Thunderer] --


function spell0_6516(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(61685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6516', 4000, 1)
end

function spell1_6516(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6516', 0, 1)
end

function spell2_6516(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6516', 0, 1)
end

function spell3_6516(pUnit, Event) --@Smack,n/a--
pUnit:FullCastSpellOnTarget(49972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6516', 597, 1)
end

function Sorts_6516(pUnit, Event)
local choix_sorts_6516 = math.random(0, 3)
if choix_sorts_6516 == 0 then
pUnit:RegisterEvent('spell0_6516', 1, 1)
end
if choix_sorts_6516 == 1 then
pUnit:RegisterEvent('spell1_6516', 1, 1)
end
if choix_sorts_6516 == 2 then
pUnit:RegisterEvent('spell2_6516', 1, 1)
end
if choix_sorts_6516 == 3 then
pUnit:RegisterEvent('spell3_6516', 1, 1)
end
end

function mob6516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6516', math.random(1500, 3000), 1)
end

function mob6516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6516, 1, 'mob6516_Action')
RegisterUnitEvent(6516, 2, 'mob6516_Leave')
RegisterUnitEvent(6516, 3, 'mob6516_Kill')
RegisterUnitEvent(6516, 4, 'mob6516_Die')
